package com.ydm.fire_fighting_web.entity.index;

import lombok.Data;
import lombok.ToString;
import org.hibernate.annotations.GenericGenerator;

import javax.persistence.*;
import java.util.Date;

@Data
@ToString
@Entity
@Table(name="fault_equipment")
@GenericGenerator(name = "jpa-uuid", strategy = "uuid")
public class FaultEquipment {
    //设备ID、发生时间、告警类型、设备类型、所属网格、所属单位、设备地址、告警状态、详细信息链接
    @Id
    @GeneratedValue(generator = "jpa-uuid")
    @Column(length = 32)
    private String id;//设备ID
    private Date happenTime; //发生时间
    private String alarmType;//告警类型
    private String equipmentType;//设备类型 如烟感设备、温度设备、水压设备
    private String unit;    //所属单位
    private String equipmentAddress; //设备地址
    private Integer alarmStatus;  //告警状态
    private String href; //详细信息链接
}
